import React from 'react'
import Taro from '@tarojs/taro'
import { View} from '@tarojs/components'
import { NoPayOrder } from './NoPayOrder'
import './SingleOrder.scss'

class NoPayOrderList extends React.Component{

  render(){     
    return(
      <View className='orderPanel'>
        {this.props.data_0.map(
          (item) => {
            return <view>
              <NoPayOrder
                doctor_avatar = {item.doctor_img_url} // 医生头像
                hospital_name = {item.hospital_name}  // 医院名
                department = {item.department}    // 科室名
                doctor_name = {item.doctor_name}  // 医生姓名
                order_time = {item.end_time}    // 下订单时间
                start_time = {item.start_time_date + ' ' + item.start_time_ampm.slice(-2) + item.start_time_hour + '点'} // 预约时间
                order_fee = {item.order_fee}  // 预约费用
                order_id = {item.order_id}    // 订单编号
              ></NoPayOrder>
            </view>
          }
        )}
      </View>
    )
  }
}
  
export {NoPayOrderList}